import os
from time import sleep

import pytest
import yaml
from selenium import webdriver


@pytest.fixture(scope='session')
def env(request):
	config_path = os.path.join(request.config.rootdir,
	                           'config',
	                           'test',
	                           'config.yaml')
	# print(config_path)
	with open(config_path) as f:
		env_config = yaml.safe_load(f.read())
	print(env_config)
	return env_config

@pytest.fixture(scope='module')
def login():
	print('login 111111')


@pytest.fixture(scope='session')
def prepare():
	print('数据准备----------------')
	yield
	print('数据清理----------------')


